import { AllowAnon } from '@/decorators/allow-anon.decortors';
import { Controller, Get, Param } from '@nestjs/common';
import { ApiTags } from '@nestjs/swagger';
import { TestService } from './text.service';

@Controller('test')
@ApiTags('测试')
@AllowAnon()
export class TestController {
    constructor(private testService: TestService) { }

    @Get('/test1/:id')
    async test1(@Param() params: any) {
        return this.testService.test1(params.id)
    }
    @Get('/test2/:id')
    async test2(@Param() params: any) {
        return this.testService.test2(params.id)
    }
    @Get('/test3/:id')
    async test3(@Param() params: any) {
        return this.testService.test3(params.id)
    }
    @Get('/score')
    async store() {
        return this.testService.score()
    }
}
